package cn.tedu.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AttributeTemplateUpdateInfoParam implements Serializable {
    @NotNull(message = "属性模板名称必须提交")
    @ApiModelProperty(value = "属性模板名称",required = true,example = "电脑")
    private String name;

    @NotNull(message = "属性模板拼音必须提交")
    @ApiModelProperty(value = "属性模板拼音",required = true,example = "diannao")
    private String pinyin;

    @NotNull(message = "关键词必须提交")
    @ApiModelProperty(value = "属性模板关键词",required = true,example = "k1,k2")
    private String keywords;

    @NotNull(message = "属性模板排序必须提交")
    @Range(min = 1,max = 99,message = "属性模板排序必须在1~99之间")
    @ApiModelProperty(value = "属性模板排序(1~99之间)",required = true,example = "53")
    private Integer sort;
}
